package GoFushan;

import java.util.Random;

public abstract class AbstractVehicle implements Vehicle {
	
	public Vehice getVehicle() {
		Random random = new Random();
		int ran = random.nextInt(10) + 1;
		if(ran > 8) {
			return new Vehice("Plane");
		} else if (ran > 4) {
			return new Vehice("Train");
		} else {
			return new Vehice("Tuola");
		}
	}

}
